$(function(){
	$("#selectCity").click(function(event) { event.preventDefault() });
	$("#uesrTools .uesrAct").click(function(event) { event.preventDefault() });
	$("#selectCity span").powerFloat({
		 width: "80px",
		 eventType: "click",
		 target: [
		 "<a href='index.php?module=Page&func=Selectcity&op=Select&citycode=0851'>贵&nbsp;阳</a>",
		 "<a href='index.php?module=Page&func=Selectcity&op=Select&citycode=0852'>遵&nbsp;义</a>",
		 "<a href='index.php?module=Page&func=Selectcity&op=Select&citycode=0853'>安&nbsp;顺</a>",
		 "<a href='index.php?module=Page&func=Selectcity&op=Select&citycode=0854'>都&nbsp;匀</a>",
		 "<a href='index.php?module=Page&func=Selectcity&op=Select&citycode=0855'>凯&nbsp;里</a>",
		 "<a href='index.php?module=Page&func=Selectcity&op=Select&citycode=0856'>铜&nbsp;仁</a>",
		 "<a href='index.php?module=Page&func=Selectcity&op=Select&citycode=0857'>毕&nbsp;节</a>",
		 "<a href='index.php?module=Page&func=Selectcity&op=Select&citycode=0858'>六盘水</a>",
		 "<a href='index.php?module=Page&func=Selectcity&op=Select&citycode=0859'>兴&nbsp;义</a>"
		 ],
		 targetMode: "list"
	});
	
	//遮罩层
	function overLay(){
		if (!$("#overLay").size()) {
			$('<div id="overLay"></div>').prependTo($("body"));
			$("#overLay").height($(document).height());
		}	
	}
	
	//关闭遮罩
	function closeOverLay(){
		$("#overLay").remove();
		$("#popUp").hide();
	}
	
	//弹出提示 注销登录	
	$("#uesrTools .uesrAct").bind('click',function(){
		var userInfo = $(this).attr('title');
		//创建popUp div
		$('body').prepend('<div id="popUp" style="display:block"><h5><a href="#"></a>您好！'+userInfo+'</h5><div id="popUpCont">请选择您要操作选项,点击关闭取消操作:<br /><br /><a href="index.php?module=Page&func=Passport&op=Logout">注销</a>&nbsp;|&nbsp;<a href="index.php?module=Page&func=Passport&op=Login">更改用户</a>&nbsp;&nbsp;<a class="btn colorY" href="index.php?module=Page&func=MyApp&$theid=57">用户中心</a></div></div>' );
		//打开遮罩
		overLay();
	});
	
	$("#overLay").live('click',function(){	closeOverLay() });
	$('#popUp h5 a').live('click',function(){closeOverLay()});
	
	
	
});